#coding=utf-8


#7.2.4 使用break退出循环
print('****************')
print('7.2.4 使用break退出循环')

prompt = "\nPlease enter yhe name of a city you have visited:"
prompt += "\n(Enter 'quit' when you are finished.)"

while True:
    city = input(prompt)
    
    if city == 'quit':
        break
    else:
        print("I'd love to go to " + city.title() + "!")

    
    
    
    
    
    

